package com.hctg.forced2sleep.utils;

import com.actor.myandroidframework.utils.ConfigUtils;
import com.hctg.forced2sleep.R;
import com.tencent.bugly.Bugly;
import com.tencent.bugly.beta.Beta;

/**
 * description: <a href="https://bugly.qq.com" target="_blank">Bugly</a> <br />
 * 添加依赖:
 * <pre>
 *  implementation "com.tencent.bugly:crashreport_upgrade:1.5.23"
 *  implementation "com.tencent.bugly:nativecrashreport:3.9.2"
 * </pre>
 *
 * @author : ldf
 * date       : 2024/10/6 on 17
 * @version 1.0
 */
public class BuglyUtils {

    public static void init(String buglyId) {
        Beta.autoInit = false;
        Beta.autoCheckAppUpgrade = false;
        Beta.largeIconId = R.drawable.logo;
        Beta.smallIconId = R.drawable.logo;
        Beta.defaultBannerId = R.drawable.logo;
        Beta.enableNotification = true;
        Beta.autoDownloadOnWifi = false;
        Beta.canShowApkInfo = false;
        Bugly.init(ConfigUtils.APPLICATION, buglyId, ConfigUtils.IS_APP_DEBUG);
    }

}
